package com.moduls.interfaceFunction.excel.export;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * 师傅采购单
 * @author pc
 *
 */
public class WorkerBean {

	private String order_item_id;
	private String create_time;
	private String order_no;
	private String member_name;
	private String kehu_company;
	private String catalog_parent_name;
	private String catalog_name;
	private String item_name;
	private String val_names;
	private String unit;
	private String order_num;
	private String actual_num;
	private String customer_price;
	private String money;
	private String actual_num_member;
	private String cost_price;
	private String cost_money;
	private String profit;
	private String hexiao_status;
	private String hexiao_note;
	
	public WorkerBean() {
		
	}
	public WorkerBean(Map<String, Object> map) {
		if (!(map.get("order_item_id") == null || map.get("order_item_id").equals(""))) {
    		this.order_item_id = map.get("order_item_id").toString();
		}
    	if (!(map.get("create_time") == null || map.get("create_time").equals(""))) {
    		this.create_time = map.get("create_time").toString();
		}
    	if (!(map.get("order_no") == null || map.get("order_no").equals(""))) {
    		this.order_no = map.get("order_no").toString();
		}
    	if (!(map.get("member_name") == null || map.get("member_name").equals(""))) {
    		this.member_name = map.get("member_name").toString();
		}
    	if (!(map.get("kehu_company") == null || map.get("kehu_company").equals(""))) {
    		this.kehu_company = map.get("kehu_company").toString();
		}
    	if (!(map.get("catalog_parent_name") == null || map.get("catalog_parent_name").equals(""))) {
    		this.catalog_parent_name = map.get("catalog_parent_name").toString();
		}
    	if (!(map.get("catalog_name") == null || map.get("catalog_name").equals(""))) {
    		this.catalog_name = map.get("catalog_name").toString();
		}
    	if (!(map.get("item_name") == null || map.get("item_name").equals(""))) {
    		this.item_name = map.get("item_name").toString();
		}
    	if (!(map.get("val_names") == null || map.get("val_names").equals(""))) {
    		this.val_names = map.get("val_names").toString();
		}
    	if (!(map.get("unit") == null || map.get("unit").equals(""))) {
    		this.unit = map.get("unit").toString();
		}
    	if (!(map.get("order_num") == null || map.get("order_num").equals(""))) {
    		this.order_num = map.get("order_num").toString();
		}
    	if (!(map.get("actual_num") == null || map.get("actual_num").equals(""))) {
    		this.actual_num = map.get("actual_num").toString();
		}
    	if (!(map.get("customer_price") == null || map.get("customer_price").equals(""))) {
    		this.customer_price = map.get("customer_price").toString();
		}
    	if (!(map.get("money") == null || map.get("money").equals(""))) {
    		this.money = map.get("money").toString();
		}
    	if (!(map.get("actual_num_member") == null || map.get("actual_num_member").equals(""))) {
    		this.actual_num_member = map.get("actual_num_member").toString();
		}
    	if (!(map.get("cost_price") == null || map.get("cost_price").equals(""))) {
    		this.cost_price = map.get("cost_price").toString();
		}
    	if (!(map.get("cost_money") == null || map.get("cost_money").equals(""))) {
    		this.cost_money = map.get("cost_money").toString();
		}
    	if (!(map.get("profit") == null || map.get("profit").equals(""))) {
    		this.profit = map.get("profit").toString();
		}
    	if (!(map.get("hexiao_status") == null || map.get("hexiao_status").equals(""))) {
    		this.hexiao_status = map.get("hexiao_status").toString();
		}
    	if (!(map.get("hexiao_note") == null || map.get("hexiao_note").equals(""))) {
    		this.hexiao_note = map.get("hexiao_note").toString();
		}
	}
	
	public static List<WorkerBean> getBean(List<Map<String, Object>> list) {
		List<WorkerBean> workerBeans = null;
		if (list != null && list.size() > 0) {
			workerBeans = new ArrayList<>();
			for (Map<String, Object> map : list) {
				workerBeans.add(new WorkerBean(map));
			}
		}
		return workerBeans;
	}
	
	public String getOrder_item_id() {
		return order_item_id;
	}
	public void setOrder_item_id(String order_item_id) {
		this.order_item_id = order_item_id;
	}
	public String getCreate_time() {
		return create_time;
	}
	public void setCreate_time(String create_time) {
		this.create_time = create_time;
	}
	public String getOrder_no() {
		return order_no;
	}
	public void setOrder_no(String order_no) {
		this.order_no = order_no;
	}
	public String getMember_name() {
		return member_name;
	}
	public void setMember_name(String member_name) {
		this.member_name = member_name;
	}
	public String getKehu_company() {
		return kehu_company;
	}
	public void setKehu_company(String kehu_company) {
		this.kehu_company = kehu_company;
	}
	public String getCatalog_parent_name() {
		return catalog_parent_name;
	}
	public void setCatalog_parent_name(String catalog_parent_name) {
		this.catalog_parent_name = catalog_parent_name;
	}
	public String getCatalog_name() {
		return catalog_name;
	}
	public void setCatalog_name(String catalog_name) {
		this.catalog_name = catalog_name;
	}
	public String getItem_name() {
		return item_name;
	}
	public void setItem_name(String item_name) {
		this.item_name = item_name;
	}
	public String getVal_names() {
		return val_names;
	}
	public void setVal_names(String val_names) {
		this.val_names = val_names;
	}
	public String getUnit() {
		return unit;
	}
	public void setUnit(String unit) {
		this.unit = unit;
	}
	public String getOrder_num() {
		return order_num;
	}
	public void setOrder_num(String order_num) {
		this.order_num = order_num;
	}
	public String getActual_num() {
		return actual_num;
	}
	public void setActual_num(String actual_num) {
		this.actual_num = actual_num;
	}
	public String getCustomer_price() {
		return customer_price;
	}
	public void setCustomer_price(String customer_price) {
		this.customer_price = customer_price;
	}
	public String getMoney() {
		return money;
	}
	public void setMoney(String money) {
		this.money = money;
	}
	public String getActual_num_member() {
		return actual_num_member;
	}
	public void setActual_num_member(String actual_num_member) {
		this.actual_num_member = actual_num_member;
	}
	public String getCost_price() {
		return cost_price;
	}
	public void setCost_price(String cost_price) {
		this.cost_price = cost_price;
	}
	public String getCost_money() {
		return cost_money;
	}
	public void setCost_money(String cost_money) {
		this.cost_money = cost_money;
	}
	public String getProfit() {
		return profit;
	}
	public void setProfit(String profit) {
		this.profit = profit;
	}
	public String getHexiao_status() {
		return hexiao_status;
	}
	public void setHexiao_status(String hexiao_status) {
		this.hexiao_status = hexiao_status;
	}
	public String getHexiao_note() {
		return hexiao_note;
	}
	public void setHexiao_note(String hexiao_note) {
		this.hexiao_note = hexiao_note;
	}
	
}
